package com.cz.zslu.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>
 * 提现申请
 * </p>
 *
 * @author 森森
 * @since 2018-11-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("withdraw_bill")
public class WithdrawBill extends SuperEntity<WithdrawBill> {


    private static final long serialVersionUID = 1L;

    /**
     * 状态   0：正常   1：禁用
     */
    @JSONField(serialize = false)
    @TableLogic
    @JsonIgnore
    @ApiModelProperty("状态   0：正常   1：禁用")
    private Integer status = 0;
    /**
     * 申请人
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 店铺名称
     */
    @TableField("store_name")
    private String storeName;
    /**
     * 提现金额
     */
    private BigDecimal amount;
    /**
     * 银行名称
     */
    @TableField("bank_name")
    private String bankName;
    /**
     * 银行卡号
     */
    @TableField("bank_card")
    private String bankCard;
    /**
     * 开卡人姓名
     */
    @TableField("opened_people")
    private String openedPeople;
    /**
     * 开户行
     */
    @TableField("bank_deposit")
    private String bankDeposit;
    /**
     * 0:申请中，1：打款成功，2：打款失败
     */
    private Integer audit;
    /**
     * 打款失败备注
     */
    @TableField("failure_remarks")
    private String failureRemarks;


}
